package com.lxy.demo.exception;

import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class ExcptionTest {

    @AfterThrowing(value = "execution(* com.lxy.demo.manager.CCBManagerImpl.*(..))",throwing = "e")
    public void doException(Exception e) {
        System.out.println("发生了异常" + e);
    }
}
